﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography;

namespace Tipler.Siniflar
{
   public class Sifreleme
    {
       public static byte[] MD5Sifreleme(string sText)
       {
           UTF8Encoding encoder = new UTF8Encoding();
           MD5 md5 = new MD5CryptoServiceProvider();
           byte[] md5Sifre = md5.ComputeHash(encoder.GetBytes(sText));

           return md5Sifre;
       }
    }
}
